/* 
* @Author: Rowger php_echo@163.com
* @Date:   2017-10-26 14:26:44
* @Last Modified by:   Rowger
* @Last Modified time: 2017-10-26 16:38:58
*/

import React from 'react'
import  App from './App'
import {Route,Link} from 'react-router-dom'

function Erying(){
    return <h2>二营</h2>
}
function Qibinglian(){
    return <h2>骑兵连</h2>
}


class Dashboard extends React.Component{
    constructor(props){
      super(props)
    }
    render(){
        return(
            <div>
                <ul>
                    <li>
                      <Link to='/dashboard/'>一营</Link>   
                    </li>
                    <li>
                      <Link to='/dashboard/erying'>二营</Link>   
                    </li>
                    <li>
                      <Link to='/dashboard/qibinglian'>骑兵连</Link>   
                    </li>
                </ul>
                <Route path='/dashboard/' exact component={App}></Route>
                <Route path='/dashboard/erying' component={Erying}></Route>
                <Route path='/dashboard/qibinglian' component={Qibinglian}></Route>
            </div>
        )
    }
}

export default Dashboard

//<Route path='/dashboard/' exact component={App}></Route>
//<Route path='/dashboard/erying'  component={Erying}></Route>
//<Route path='/dashboard/qibinglian'  component={Qibinglian}></Route>